package com.pubinfo.passbook.common.model.http.baseEntity.request;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import com.pubinfo.passbook.common.model.http.request.RequestBody;
import lombok.Data;

import java.io.Serializable;

@JacksonXmlRootElement(localName = "soapenv:Envelope", namespace = "")
@Data
public class RequestEnvelope implements Serializable {
  private static final long serialVersionUID = -1442463919490362356L;
  private String soapenv = "http://schemas.xmlsoap.org/soap/envelope/";
  private String ser = "http://services.allcommonwriteoff.ws.dakar.eshore.com/";
  private RequestBody requestBody;
  
  @JacksonXmlProperty(localName = "xmlns:soapenv", isAttribute = true)
  public String getSoapenv() {
    return soapenv;
  }
  
  @JacksonXmlProperty(localName = "xmlns:ser", isAttribute = true)
  public String getSer() {
    return ser;
  }
  
  @JacksonXmlProperty(localName = "soapenv:Body")
  public RequestBody getRequestBody() {
    return requestBody;
  }
}
